<template>
  <div>孙子级组件</div>
  <h2>{{color}}</h2>
</template>

<script lang="ts">
import {defineComponent, inject} from 'vue';

export default defineComponent({
  name: 'App',
  components: {},
  setup(){
    const color = inject('color')
    return{
      color
    }
  }
});
</script>

<style>

</style>
